Discussions
Holds configurations for the current dicussion management plugin (Disqus)
shortName
– {string}
–
The shortName property required by Disqus
url
– {string}
–
The url property required by Disqus
dev
– {boolean} (false)
–
When true provides a true flag to the Disqus dev API
If you do not provide discussion configurations, then the discussions markup will not be shown and the discussions logic will not be executed.
module.exports = function(grunt) { // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), docular: { // other options ommitted for simplicity discussions: { shortName: 'johndavidfive', url: 'http://johndavidfive.com', dev: false } } }); // Load the plugin that provides the "docular" tasks. grunt.loadNpmTasks('grunt-docular'); // Default task(s). grunt.registerTask('default', ['docular']); };